/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.vo;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户apiKey列表VO类
 *
 * @since 2022-10-28 15:47:24
 */
@Data
public class UserApiKeyVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	private String name;

	/**
	 * 访问密钥
	 */
	@ApiModelProperty(value = "访问密钥")
	private String accessKey;

	/**
	 * 权限，以空格作为间隔
	 */
	@ApiModelProperty(value = "权限，以空格作为间隔")
	private String permission;

	/**
	 * ip数量
	 */
	@ApiModelProperty(value = "ip数量")
	private Integer ipNum;

	/**
	 * 封禁次数
	 */
	@ApiModelProperty(value = "封禁次数")
	private Integer lockCount;

	/**
	 * 解封次数
	 */
	@ApiModelProperty(value = "解封次数")
	private Integer unlockCount;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 状态（0正常、1封禁）
	 */
	@ApiModelProperty(value = "状态（0正常、1封禁）")
	private String status;
}
